home *** CD-ROM | disk | FTP | other *** search
/ Aminet 5 / Aminet 5 - March 1995.iso / Aminet / util / wb / muispeak.lha / src / speakstrings_cat.h < prev    next >
C/C++ Source or Header  |  1994-10-08  |  10KB  |  354 lines

  1. #ifndef SPEAKSTRINGS_CAT_H
  2. #define SPEAKSTRINGS_CAT_H
  3.  
  4.  
  5. /****************************************************************************/
  6.  
  7.  
  8. /* This file was created automatically by CatComp.
  9.  * Do NOT edit by hand!
  10.  */
  11.  
  12.  
  13. #ifndef EXEC_TYPES_H
  14. #include <exec/types.h>
  15. #endif
  16.  
  17. #ifdef CATCOMP_ARRAY
  18. #undef CATCOMP_NUMBERS
  19. #undef CATCOMP_STRINGS
  20. #define CATCOMP_NUMBERS
  21. #define CATCOMP_STRINGS
  22. #endif
  23.  
  24. #ifdef CATCOMP_BLOCK
  25. #undef CATCOMP_STRINGS
  26. #define CATCOMP_STRINGS
  27. #endif
  28.  
  29.  
  30. /****************************************************************************/
  31.  
  32.  
  33. #ifdef CATCOMP_NUMBERS
  34.  
  35. #define MSG_AppDescription 0
  36. #define MSG_AppCopyright 1
  37. #define MSG_MN_label_0Projekt 2
  38. #define MSG_MN_label_0Quit 3
  39. #define MSG_MN_label_0QuitChar 4
  40. #define MSG_WIN_Main 5
  41. #define MSG_MN_label_1Projekt 6
  42. #define MSG_MN_label_1About 7
  43. #define MSG_MN_label_1AboutChar 8
  44. #define MSG_MN_label_1Quit 9
  45. #define MSG_MN_label_1QuitChar 10
  46. #define MSG_GR_grp_0Title 11
  47. #define MSG_TX_label_0 12
  48. #define MSG_CY_SEX0 13
  49. #define MSG_CY_SEX1 14
  50. #define MSG_TX_label_1 15
  51. #define MSG_CY_KIND0 16
  52. #define MSG_CY_KIND1 17
  53. #define MSG_CY_KIND2 18
  54. #define MSG_TX_label_4CC 19
  55. #define MSG_CY_OUTPUT0 20
  56. #define MSG_CY_OUTPUT1 21
  57. #define MSG_CY_OUTPUT2 22
  58. #define MSG_TX_label_2 23
  59. #define MSG_TX_label_3 24
  60. #define MSG_TX_label_4 25
  61. #define MSG_GR_grp_100 26
  62. #define MSG_GR_grp_101 27
  63. #define MSG_TX_label_5 28
  64. #define MSG_TX_label_6 29
  65. #define MSG_TX_F1ADJ 30
  66. #define MSG_TX_F2ADJ 31
  67. #define MSG_TX_F3ADJ 32
  68. #define MSG_TX_A1ADJ 33
  69. #define MSG_TX_A2ADJ 34
  70. #define MSG_TX_A3ADJ 35
  71. #define MSG_TX_ARTIC 36
  72. #define MSG_TX_AVBIAS 37
  73. #define MSG_TX_AFBIAS 38
  74. #define MSG_TX_CENT 39
  75. #define MSG_STR_TEXT 40
  76. #define MSG_BT_SPEAK 41
  77. #define MSG_WIN_About 42
  78. #define MSG_TX_label_7 43
  79. #define MSG_BT_OK 44
  80. #define MSG_LANGUAGE 45
  81.  
  82. #endif /* CATCOMP_NUMBERS */
  83.  
  84.  
  85. /****************************************************************************/
  86.  
  87.  
  88. #ifdef CATCOMP_STRINGS
  89.  
  90. #define MSG_AppDescription_STR "Another Speechtoy Clone"
  91. #define MSG_AppCopyright_STR "This program is freely distributable "
  92. #define MSG_MN_label_0Projekt_STR "Projekt"
  93. #define MSG_MN_label_0Quit_STR "Beenden"
  94. #define MSG_MN_label_0QuitChar_STR "Q"
  95. #define MSG_WIN_Main_STR "MUI Speak  Written in 1994 by Andreas Jung"
  96. #define MSG_MN_label_1Projekt_STR "Projekt"
  97. #define MSG_MN_label_1About_STR "Über MuiSpeak"
  98. #define MSG_MN_label_1AboutChar_STR "?"
  99. #define MSG_MN_label_1Quit_STR "Beenden"
  100. #define MSG_MN_label_1QuitChar_STR "Q"
  101. #define MSG_GR_grp_0Title_STR "Allgemein"
  102. #define MSG_TX_label_0_STR "Geschlecht: "
  103. #define MSG_CY_SEX0_STR "Männlich"
  104. #define MSG_CY_SEX1_STR "Weiblich"
  105. #define MSG_TX_label_1_STR "Art:"
  106. #define MSG_CY_KIND0_STR "Normal"
  107. #define MSG_CY_KIND1_STR "Roboterhaft"
  108. #define MSG_CY_KIND2_STR "Manuell"
  109. #define MSG_TX_label_4CC_STR "Ausgabekanal:"
  110. #define MSG_CY_OUTPUT0_STR "Links"
  111. #define MSG_CY_OUTPUT1_STR "Rechts"
  112. #define MSG_CY_OUTPUT2_STR "Links + Rechts"
  113. #define MSG_TX_label_2_STR "Stimmhöhe:"
  114. #define MSG_TX_label_3_STR "Geschwindigkeit:"
  115. #define MSG_TX_label_4_STR "Lautstärke:"
  116. #define MSG_GR_grp_100_STR "Detailiert I"
  117. #define MSG_GR_grp_101_STR "Detailiert II"
  118. #define MSG_TX_label_5_STR "Enthusiasmus:"
  119. #define MSG_TX_label_6_STR "Perturbation:"
  120. #define MSG_TX_F1ADJ_STR "F1Adj:"
  121. #define MSG_TX_F2ADJ_STR "F2Adj:"
  122. #define MSG_TX_F3ADJ_STR "F3Adj:"
  123. #define MSG_TX_A1ADJ_STR "A1Adj:"
  124. #define MSG_TX_A2ADJ_STR "A2Adj:"
  125. #define MSG_TX_A3ADJ_STR "A3Adj:"
  126. #define MSG_TX_ARTIC_STR "Artic:"
  127. #define MSG_TX_AVBIAS_STR "AVBias:"
  128. #define MSG_TX_AFBIAS_STR "AFBias:"
  129. #define MSG_TX_CENT_STR "Cent:"
  130. #define MSG_STR_TEXT_STR "Texteingabe"
  131. #define MSG_BT_SPEAK_STR "_Sprechen"
  132. #define MSG_WIN_About_STR "Über MuiSpeak"
  133. #define MSG_TX_label_7_STR "\033cMuiSpeak 0.04\n\n(C) in 1994\nby\nAndreas Jung\n\nAll rights reserved !"
  134. #define MSG_BT_OK_STR "OK"
  135. #define MSG_LANGUAGE_STR "Sprache"
  136.  
  137. #endif /* CATCOMP_STRINGS */
  138.  
  139.  
  140. /****************************************************************************/
  141.  
  142.  
  143. #ifdef CATCOMP_ARRAY
  144.  
  145. struct CatCompArrayType
  146. {
  147.     LONG   cca_ID;
  148.     STRPTR cca_Str;
  149. };
  150.  
  151. static const struct CatCompArrayType CatCompArray[] =
  152. {
  153.     {MSG_AppDescription,(STRPTR)MSG_AppDescription_STR},
  154.     {MSG_AppCopyright,(STRPTR)MSG_AppCopyright_STR},
  155.     {MSG_MN_label_0Projekt,(STRPTR)MSG_MN_label_0Projekt_STR},
  156.     {MSG_MN_label_0Quit,(STRPTR)MSG_MN_label_0Quit_STR},
  157.     {MSG_MN_label_0QuitChar,(STRPTR)MSG_MN_label_0QuitChar_STR},
  158.     {MSG_WIN_Main,(STRPTR)MSG_WIN_Main_STR},
  159.     {MSG_MN_label_1Projekt,(STRPTR)MSG_MN_label_1Projekt_STR},
  160.     {MSG_MN_label_1About,(STRPTR)MSG_MN_label_1About_STR},
  161.     {MSG_MN_label_1AboutChar,(STRPTR)MSG_MN_label_1AboutChar_STR},
  162.     {MSG_MN_label_1Quit,(STRPTR)MSG_MN_label_1Quit_STR},
  163.     {MSG_MN_label_1QuitChar,(STRPTR)MSG_MN_label_1QuitChar_STR},
  164.     {MSG_GR_grp_0Title,(STRPTR)MSG_GR_grp_0Title_STR},
  165.     {MSG_TX_label_0,(STRPTR)MSG_TX_label_0_STR},
  166.     {MSG_CY_SEX0,(STRPTR)MSG_CY_SEX0_STR},
  167.     {MSG_CY_SEX1,(STRPTR)MSG_CY_SEX1_STR},
  168.     {MSG_TX_label_1,(STRPTR)MSG_TX_label_1_STR},
  169.     {MSG_CY_KIND0,(STRPTR)MSG_CY_KIND0_STR},
  170.     {MSG_CY_KIND1,(STRPTR)MSG_CY_KIND1_STR},
  171.     {MSG_CY_KIND2,(STRPTR)MSG_CY_KIND2_STR},
  172.     {MSG_TX_label_4CC,(STRPTR)MSG_TX_label_4CC_STR},
  173.     {MSG_CY_OUTPUT0,(STRPTR)MSG_CY_OUTPUT0_STR},
  174.     {MSG_CY_OUTPUT1,(STRPTR)MSG_CY_OUTPUT1_STR},
  175.     {MSG_CY_OUTPUT2,(STRPTR)MSG_CY_OUTPUT2_STR},
  176.     {MSG_TX_label_2,(STRPTR)MSG_TX_label_2_STR},
  177.     {MSG_TX_label_3,(STRPTR)MSG_TX_label_3_STR},
  178.     {MSG_TX_label_4,(STRPTR)MSG_TX_label_4_STR},
  179.     {MSG_GR_grp_100,(STRPTR)MSG_GR_grp_100_STR},
  180.     {MSG_GR_grp_101,(STRPTR)MSG_GR_grp_101_STR},
  181.     {MSG_TX_label_5,(STRPTR)MSG_TX_label_5_STR},
  182.     {MSG_TX_label_6,(STRPTR)MSG_TX_label_6_STR},
  183.     {MSG_TX_F1ADJ,(STRPTR)MSG_TX_F1ADJ_STR},
  184.     {MSG_TX_F2ADJ,(STRPTR)MSG_TX_F2ADJ_STR},
  185.     {MSG_TX_F3ADJ,(STRPTR)MSG_TX_F3ADJ_STR},
  186.     {MSG_TX_A1ADJ,(STRPTR)MSG_TX_A1ADJ_STR},
  187.     {MSG_TX_A2ADJ,(STRPTR)MSG_TX_A2ADJ_STR},
  188.     {MSG_TX_A3ADJ,(STRPTR)MSG_TX_A3ADJ_STR},
  189.     {MSG_TX_ARTIC,(STRPTR)MSG_TX_ARTIC_STR},
  190.     {MSG_TX_AVBIAS,(STRPTR)MSG_TX_AVBIAS_STR},
  191.     {MSG_TX_AFBIAS,(STRPTR)MSG_TX_AFBIAS_STR},
  192.     {MSG_TX_CENT,(STRPTR)MSG_TX_CENT_STR},
  193.     {MSG_STR_TEXT,(STRPTR)MSG_STR_TEXT_STR},
  194.     {MSG_BT_SPEAK,(STRPTR)MSG_BT_SPEAK_STR},
  195.     {MSG_WIN_About,(STRPTR)MSG_WIN_About_STR},
  196.     {MSG_TX_label_7,(STRPTR)MSG_TX_label_7_STR},
  197.     {MSG_BT_OK,(STRPTR)MSG_BT_OK_STR},
  198.     {MSG_LANGUAGE,(STRPTR)MSG_LANGUAGE_STR},
  199. };
  200.  
  201. #endif /* CATCOMP_ARRAY */
  202.  
  203.  
  204. /****************************************************************************/
  205.  
  206.  
  207. #ifdef CATCOMP_BLOCK
  208.  
  209. static const char CatCompBlock[] =
  210. {
  211.     "\x00\x00\x00\x00\x00\x18"
  212.     MSG_AppDescription_STR "\x00"
  213.     "\x00\x00\x00\x01\x00\x26"
  214.     MSG_AppCopyright_STR "\x00"
  215.     "\x00\x00\x00\x02\x00\x08"
  216.     MSG_MN_label_0Projekt_STR "\x00"
  217.     "\x00\x00\x00\x03\x00\x08"
  218.     MSG_MN_label_0Quit_STR "\x00"
  219.     "\x00\x00\x00\x04\x00\x02"
  220.     MSG_MN_label_0QuitChar_STR "\x00"
  221.     "\x00\x00\x00\x05\x00\x2C"
  222.     MSG_WIN_Main_STR "\x00\x00"
  223.     "\x00\x00\x00\x06\x00\x08"
  224.     MSG_MN_label_1Projekt_STR "\x00"
  225.     "\x00\x00\x00\x07\x00\x0E"
  226.     MSG_MN_label_1About_STR "\x00"
  227.     "\x00\x00\x00\x08\x00\x02"
  228.     MSG_MN_label_1AboutChar_STR "\x00"
  229.     "\x00\x00\x00\x09\x00\x08"
  230.     MSG_MN_label_1Quit_STR "\x00"
  231.     "\x00\x00\x00\x0A\x00\x02"
  232.     MSG_MN_label_1QuitChar_STR "\x00"
  233.     "\x00\x00\x00\x0B\x00\x0A"
  234.     MSG_GR_grp_0Title_STR "\x00"
  235.     "\x00\x00\x00\x0C\x00\x0E"
  236.     MSG_TX_label_0_STR "\x00\x00"
  237.     "\x00\x00\x00\x0D\x00\x0A"
  238.     MSG_CY_SEX0_STR "\x00\x00"
  239.     "\x00\x00\x00\x0E\x00\x0A"
  240.     MSG_CY_SEX1_STR "\x00\x00"
  241.     "\x00\x00\x00\x0F\x00\x06"
  242.     MSG_TX_label_1_STR "\x00\x00"
  243.     "\x00\x00\x00\x10\x00\x08"
  244.     MSG_CY_KIND0_STR "\x00\x00"
  245.     "\x00\x00\x00\x11\x00\x0C"
  246.     MSG_CY_KIND1_STR "\x00"
  247.     "\x00\x00\x00\x12\x00\x08"
  248.     MSG_CY_KIND2_STR "\x00"
  249.     "\x00\x00\x00\x13\x00\x0E"
  250.     MSG_TX_label_4CC_STR "\x00"
  251.     "\x00\x00\x00\x14\x00\x06"
  252.     MSG_CY_OUTPUT0_STR "\x00"
  253.     "\x00\x00\x00\x15\x00\x08"
  254.     MSG_CY_OUTPUT1_STR "\x00\x00"
  255.     "\x00\x00\x00\x16\x00\x10"
  256.     MSG_CY_OUTPUT2_STR "\x00\x00"
  257.     "\x00\x00\x00\x17\x00\x0C"
  258.     MSG_TX_label_2_STR "\x00\x00"
  259.     "\x00\x00\x00\x18\x00\x12"
  260.     MSG_TX_label_3_STR "\x00\x00"
  261.     "\x00\x00\x00\x19\x00\x0C"
  262.     MSG_TX_label_4_STR "\x00"
  263.     "\x00\x00\x00\x1A\x00\x0E"
  264.     MSG_GR_grp_100_STR "\x00\x00"
  265.     "\x00\x00\x00\x1B\x00\x0E"
  266.     MSG_GR_grp_101_STR "\x00"
  267.     "\x00\x00\x00\x1C\x00\x0E"
  268.     MSG_TX_label_5_STR "\x00"
  269.     "\x00\x00\x00\x1D\x00\x0E"
  270.     MSG_TX_label_6_STR "\x00"
  271.     "\x00\x00\x00\x1E\x00\x08"
  272.     MSG_TX_F1ADJ_STR "\x00\x00"
  273.     "\x00\x00\x00\x1F\x00\x08"
  274.     MSG_TX_F2ADJ_STR "\x00\x00"
  275.     "\x00\x00\x00\x20\x00\x08"
  276.     MSG_TX_F3ADJ_STR "\x00\x00"
  277.     "\x00\x00\x00\x21\x00\x08"
  278.     MSG_TX_A1ADJ_STR "\x00\x00"
  279.     "\x00\x00\x00\x22\x00\x08"
  280.     MSG_TX_A2ADJ_STR "\x00\x00"
  281.     "\x00\x00\x00\x23\x00\x08"
  282.     MSG_TX_A3ADJ_STR "\x00\x00"
  283.     "\x00\x00\x00\x24\x00\x08"
  284.     MSG_TX_ARTIC_STR "\x00\x00"
  285.     "\x00\x00\x00\x25\x00\x08"
  286.     MSG_TX_AVBIAS_STR "\x00"
  287.     "\x00\x00\x00\x26\x00\x08"
  288.     MSG_TX_AFBIAS_STR "\x00"
  289.     "\x00\x00\x00\x27\x00\x06"
  290.     MSG_TX_CENT_STR "\x00"
  291.     "\x00\x00\x00\x28\x00\x0C"
  292.     MSG_STR_TEXT_STR "\x00"
  293.     "\x00\x00\x00\x29\x00\x0A"
  294.     MSG_BT_SPEAK_STR "\x00"
  295.     "\x00\x00\x00\x2A\x00\x0E"
  296.     MSG_WIN_About_STR "\x00"
  297.     "\x00\x00\x00\x2B\x00\x44"
  298.     MSG_TX_label_7_STR "\x00"
  299.     "\x00\x00\x00\x2C\x00\x04"
  300.     MSG_BT_OK_STR "\x00\x00"
  301.     "\x00\x00\x00\x2D\x00\x08"
  302.     MSG_LANGUAGE_STR "\x00"
  303. };
  304.  
  305. #endif /* CATCOMP_BLOCK */
  306.  
  307.  
  308. /****************************************************************************/
  309.  
  310.  
  311. struct LocaleInfo
  312. {
  313.     APTR li_LocaleBase;
  314.     APTR li_Catalog;
  315. };
  316.  
  317.  
  318. #ifdef CATCOMP_CODE
  319.  
  320. STRPTR GetString(struct LocaleInfo *li, LONG stringNum)
  321. {
  322. LONG   *l;
  323. UWORD  *w;
  324. STRPTR  builtIn;
  325.  
  326.     l = (LONG *)CatCompBlock;
  327.  
  328.     while (*l != stringNum)
  329.     {
  330.         w = (UWORD *)((ULONG)l + 4);
  331.         l = (LONG *)((ULONG)l + (ULONG)*w + 6);
  332.     }
  333.     builtIn = (STRPTR)((ULONG)l + 6);
  334.  
  335. #define XLocaleBase LocaleBase
  336. #define LocaleBase li->li_LocaleBase
  337.     
  338.     if (LocaleBase)
  339.         return(GetCatalogStr(li->li_Catalog,stringNum,builtIn));
  340. #define LocaleBase XLocaleBase
  341. #undef XLocaleBase
  342.  
  343.     return(builtIn);
  344. }
  345.  
  346.  
  347. #endif /* CATCOMP_CODE */
  348.  
  349.  
  350. /****************************************************************************/
  351.  
  352.  
  353. #endif /* SPEAKSTRINGS_CAT_H */
  354.